#pragma once
#include"RBtree.h"
#include<iostream>
using namespace std;
namespace clzyf {
	template<class K>
	class myset {
	public:
		struct keyoft 
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
		typedef clzyf::Tree_iterator<K> iterator;
		bool insert(K data)
		{
			return rbt.insert(data);
		}
		void isbanlance()
		{
			rbt.IsBalance();
		}
		iterator begin()
		{
			return iterator(rbt.begin());
		}
		iterator end()
		{
			return rbt.end();
		}
	private:
		RBtree<K, K,keyoft> rbt;
	};
}